package com.hassean.we.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yajun
 * @since 2019-07-01
 */
@TableName("ipphone_deparment")
public class IpphoneDeparment extends Model<IpphoneDeparment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "deparment_id", type = IdType.AUTO)
    private Long deparmentId;
    /**
     * 鍗曚綅鍚嶇О
     */
    private String name;
    private String phone;
    /**
     * 省
     */
    private String provinces;
    /**
     * 市
     */
    private String municipalities;
    /**
     * 区
     */
    private String districts;
    /**
     * 镇街
     */
    @TableField("town_street")
    private String townStreet;
    private Integer state;
    /**
     * 数据添加时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+0")
    @TableField("add_time")
    private Date addTime;
    /**
     * 数据更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+0")
    @TableField("update_time")
    private Date updateTime;
    /**
     * 预留数字
     */
    private String temp;
    /**
     * 棰勭暀鐘舵€?
     */
    private Long status;
    /**
     * 预留备注
     */
    private String remark;
    /**
     * 预留文本
     */
    @TableField("advance_text")
    private String advanceText;
    /**
     * 预留时间
     */
    @TableField("advance_date")
    private Date advanceDate;
    /**
     * 是否删除，1删除
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 单位id
     */
    @TableField("department_id")
    private Long departmentId;
    @TableField("provinces_id")
    private Long provincesId;
    @TableField("municipalities_id")
    private Long municipalitiesId;
    @TableField("districts_id")
    private Long districtsId;


    public Long getDeparmentId() {
        return deparmentId;
    }

    public void setDeparmentId(Long deparmentId) {
        this.deparmentId = deparmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvinces() {
        return provinces;
    }

    public void setProvinces(String provinces) {
        this.provinces = provinces;
    }

    public String getMunicipalities() {
        return municipalities;
    }

    public void setMunicipalities(String municipalities) {
        this.municipalities = municipalities;
    }

    public String getDistricts() {
        return districts;
    }

    public void setDistricts(String districts) {
        this.districts = districts;
    }

    public String getTownStreet() {
        return townStreet;
    }

    public void setTownStreet(String townStreet) {
        this.townStreet = townStreet;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAdvanceText() {
        return advanceText;
    }

    public void setAdvanceText(String advanceText) {
        this.advanceText = advanceText;
    }

    public Date getAdvanceDate() {
        return advanceDate;
    }

    public void setAdvanceDate(Date advanceDate) {
        this.advanceDate = advanceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public Long getProvincesId() {
        return provincesId;
    }

    public void setProvincesId(Long provincesId) {
        this.provincesId = provincesId;
    }

    public Long getMunicipalitiesId() {
        return municipalitiesId;
    }

    public void setMunicipalitiesId(Long municipalitiesId) {
        this.municipalitiesId = municipalitiesId;
    }

    public Long getDistrictsId() {
        return districtsId;
    }

    public void setDistrictsId(Long districtsId) {
        this.districtsId = districtsId;
    }

    @Override
    protected Serializable pkVal() {
        return this.deparmentId;
    }

    @Override
    public String toString() {
        return "IpphoneDeparment{" +
        ", deparmentId=" + deparmentId +
        ", name=" + name +
        ", phone=" + phone +
        ", provinces=" + provinces +
        ", municipalities=" + municipalities +
        ", districts=" + districts +
        ", townStreet=" + townStreet +
        ", state=" + state +
        ", addTime=" + addTime +
        ", updateTime=" + updateTime +
        ", temp=" + temp +
        ", status=" + status +
        ", remark=" + remark +
        ", advanceText=" + advanceText +
        ", advanceDate=" + advanceDate +
        ", delFlag=" + delFlag +
        ", departmentId=" + departmentId +
        ", provincesId=" + provincesId +
        ", municipalitiesId=" + municipalitiesId +
        ", districtsId=" + districtsId +
        "}";
    }
}
